<div class="isi">

    <?php echo anchor("admin_konten_menu/tambah", "Tambah  Konten Menu", "class='button' style='color:#f8f8f8'") ?>

    <table id="laporan" class="display"  >
        <thead>
            <tr>
                <th width="5%">No</th>
                <th width="70%">Nama Informasi</th>
                <th>Status</th>
                <th width="5%">Tindakan</th>
            </tr>            
        </thead>
        <tbody>
            <?php
            $img_delete = $this->lib_button->delete_icon();
            $img_update = $this->lib_button->edit_icon();
            $n = 1;
            foreach ($list as $data) {
                $link_hapus = anchor('admin_konten_menu/delete/' . $data->id_konten_menu, $img_delete, array('onClick' => 'return confirm(\'Apa anda yakin akan menghapus data ini ?\');'));
                $link_edit = anchor('admin_konten_menu/edit/' . $data->id_konten_menu, $img_update);
                echo "<tr>";
                echo "<td> $n </td>";
                echo "<td> $data->nama_konten_menu </td>";
                if ($data->status)
                    $status = "Aktif";
                else
                    $status = "Non Aktif";
                echo "<td> $status </td>";
                echo "<td> $link_edit  $link_hapus </td>";
                echo "</tr>";
                $n++;
            }
            ?>
        </tbody>

    </table>   

</div>
<div class="clear"></div>
</div>